<link rel="stylesheet" href="/styles/website/css/datepicker.css" type="text/css" />
<script type="text/javascript" src="/styles/website/js/datepicker.js"></script>
<script type="text/javascript" src="/styles/website/js/eye.js"></script>
<script type="text/javascript" src="/styles/website/js/layout.js"></script>
<script type="text/javascript" src="/styles/website/js/javascript.lib.js"></script>
<script type="text/javascript">
function btnRegistry_onclick(){
	if(test_empty($('#txtName').val())){
		alert(mustInput_Name);document.frmMember.txtName.focus();return false;
	}
	if(test_empty($('#txtUser').val())){
		alert(mustInput_Uid);document.frmMember.txtUser.focus();return false;
	}
	if(test_empty($('#txtPass').val())){
		alert(mustInput_Pwd);document.frmMember.txtPass.focus();return false;
	}
	if(!test_confirm_pass($('#txtPass').val(),$('#txtRePass').val())){
		alert(identicalPassword);document.frmMember.txtRePass.focus();return false;
	}
	if(test_empty($('#txtEmail').val())){
		alert(mustInput_Email);document.frmMember.txtEmail.focus();return false;
	}
	if(!checkEmail($('#txtEmail').val())){
		alert(invalid_Email);document.frmMember.txtEmail.focus();return false;
	}
	if(!test_confirm_pass($('#txtEmail').val(),$('#txtReEmail').val())){
		alert(identicalEmail);document.frmMember.txtReEmail.focus();return false;
	}
	if(test_empty($('#txtCode').val())){
		alert(mustInput_Robust);document.frmMember.txtCode.focus();return false;
	}
	return true;
}
</script>
<div class="wrapper">
	<h3 class="title_wrapper">{$title}</h3>
    <div style="padding:10px;">
        <form action="{Url::current()}" name="frmMember" method="post" enctype="multipart/form-data">
            <div class="rows_register" style="padding-bottom:0;font-weight:bold;color:#000;">
                <label style="width:160px;">&nbsp;</label>
                ( <font color="#FF0000" style="font-weight:normal;">*</font> ) là thông tin bắt buộc.
                <div class="clear"></div>
            </div><!--rows_register-->
            <div class="rows_register" style="padding-bottom:0;font-weight:bold;color:#000;padding:10px 0;border:none;">
                {if isset($report)}{$report}{/if}
            </div><!--rows_register-->
            <div class="rows_register">
                <label style="width:160px;">Tên thành viên :</label>
                <input type="text" name="txtName" id="txtName" class="txtRegiter" value="{if isset($member.name)}{$member.name}{/if}" /><span>*</span>
                <div class="clear"></div>
                <label style="width:160px;">Giới tính :</label>
                <input type="radio"  {if isset($member.sex) && $member.sex eq 1}checked="checked"{else}checked="checked"{/if} class="radFam" name="radSex" value="1" /> <label style="width:60px">Nam</label>
                <input type="radio" {if isset($member.sex) && $member.sex eq 0}checked="checked"{/if} class="radFam" name="radSex" value="0" /> <label style="">Nữ</label>
                <div class="clear"></div>
                <label style="width:160px;">Ngày sinh :</label>
                <input type="text" readonly="readonly" class="txtRegiter" value="{if isset($member.birthday)}{$member.birthday}{/if}" name="txtBirth" id="inputDate1a" style="width:80px;margin-right:3px;float:left;" />
				<img style="float:left;margin-right:5px;margin-top:12px;" class="inputDate1a" src="/styles/website/images/calendar.png" alt="" />
                <div class="clear"></div>
                <label style="width:160px;">Địa chỉ :</label>
                <input type="text" name="txtAdd" class="txtRegiter" value="{if isset($member.address)}{$member.address}{/if}" />
                <div class="clear"></div>
                <label style="width:160px;">Điện thoại :</label>
                <input type="text" name="txtPhone" class="txtRegiter" value="{if isset($member.phone)}{$member.phone}{/if}" />
                <div class="clear"></div>
            </div><!--rows_register-->
            <div class="rows_register">
                <label style="width:160px;">Tên đăng nhập :</label>
                <input type="text" name="txtUser" id="txtUser" class="txtRegiter" {if isset($member.username)} readonly="" value="{$member.username}"{/if} /><span>*</span>
                <div class="clear"></div>
                <p style="padding-left:160px;"><span id="availability_status">Tên đăng nhập phải từ 6 đến 13 ký tự</span>
                </p><div class="clear"></div>
                <p></p>
                <label style="width:160px;">Mật khẩu :</label>
                <input type="password" name="txtPass" {if !isset($member)}id="txtPass"{/if} class="txtRegiter" />{if !isset($member)}<span>*</span>{/if}
                <div class="clear"></div>
                <label style="width:160px;">Nhập lại mật khẩu :</label>
                <input type="password" name="txtRePass" {if !isset($member)}id="txtRePass"{/if} class="txtRegiter" />{if !isset($member)}<span>*</span>{/if}
                <div class="clear"></div>
                <p style="padding-left:160px;">Mật khẩu phải từ 6 ký tự trở lên</p>
            </div><!--rows_register-->
            <div class="rows_register">                  
                <label style="width:160px;">Email :</label>
                <input type="text" name="txtEmail" id="txtEmail" class="txtRegiter" {if isset($member.email)} readonly="" value="{$member.email}"{/if} /><span>*</span>
                <div class="clear"></div>
                <label style="width:160px;">Nhập lại email :</label>
                <input type="text" name="txtReEmail" id="txtReEmail" class="txtRegiter" /><span>*</span><br/><br/>
                <div class="clear"></div>
            </div><!--rows_register-->
            <div class="rows_register">
                <p style="margin-top:10px;padding-left:160px;">{$captcha}</p>
                <label style="width:160px;">Mã xác nhận :</label>
                <input type="text" name="txtCode" id="txtCode" class="txtRegiter" style="width:150px;" /><span>*</span>                    
                <div class="clear"></div>
            </div><!--rows_register-->
            <div class="rows_register" style="border:none;">
                <input type="hidden" name="action" value="{$action}" />
                <input type="hidden" name="token" value="{Security::setToken('token_form')}" />
                <p style="padding-left:160px;"><input onclick="return btnRegistry_onclick();" type="submit" name="btnSubmit" value="Đăng ký" class="btnRegister"><input type="reset" value="Nhập lại" class="btnRegister"></p>
                <div class="clear"></div>
            </div><!--rows_register-->
        </form>
     </div>
</div><!--wrapper-->